package com.yang.newCustomersTransferBackProcess.dao;

import com.yang.newCustomersTransferBackProcess.pojo.MergeCustomer;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface MergeCustomerDao extends JpaRepository<MergeCustomer, Integer>, JpaSpecificationExecutor<MergeCustomer> {

    @Query(value = "select * from merge_customer where id = ?", nativeQuery = true)
    MergeCustomer findMergeCustomer(int id);
}
